import Vue from 'vue'
import Router from 'vue-router'
const home = () => import('../pages/Home.vue')
const about = () => import('../pages/about/About.vue')
const cases = () => import('../pages/Cases.vue')
const honor = () => import('../pages/Honor.vue')
const employ = () => import('../pages/Employ.vue')
const news = () => import('../pages/News.vue')
const cultrue = () => import('../pages/about/enterpriseCulture.vue')

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '',
      redirect: '/home',
      name: 'home',
      component: home
    },

    {
      path: '/home',
      name: 'home',
      component: home,
      meta: {index: 0}
    },

    {
      // 关于我们
      path: '/about',
      name: 'about',
      component: about,
      meta: {index: 1}

    },
    {
      // 关于我们>企业文化
      path: '/enterpriseculture',
      name: 'enterpriseculture',
      component: cultrue,
      meta: {index: 1}

    },
    {
      // 经典案例
      path: '/cases',
      name: 'cases',
      component: cases,
      meta: {index: 2}

    },
    {
      // 荣誉
      path: '/honor',
      name: 'honor',
      component: honor,
      meta: {index: 3}
    },

    {
      path: '/news',
      name: 'news',
      component: news,
      meta: {index: 4}
    },
    {
      // 招聘
      path: '/employ',
      name: 'employ',
      component: employ,
      meta: {index: 5}
    }
    // {
    //   path: '/jobSearch',
    //   name: 'jobSearch',
    //   component: JobSearch
    // },
    // {
    //   path: '/jobSingle',
    //   name: 'jobSingle',
    //   component: JobSingle
    // },
    // {
    //   path: '/pricingPlan',
    //   name: 'pricingPlan',
    //   component: PricingPlan
    // },
  ]
})
